package com.eos.orm.mybatis.dao.impl;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.eos.orm.mybatis.dao.ServiceFeeMonthReportMapper;
import com.eos.orm.mybatis.model.ServiceFeeMonthReport;
import com.eos.orm.mybatis.model.ServiceFeeMonthReportExample;

/**
 * service_fee_month_report融信服务费结算表的CURD操作
 * 
 * @author sz
 * 
 */
public class ServiceFeeMonthReportMapperImpl extends AbstractSqlSessionFactory
		implements ServiceFeeMonthReportMapper {

	public int countByExample(ServiceFeeMonthReportExample example) {
		return 0;
	}

	public int deleteByExample(ServiceFeeMonthReportExample example) {
		return 0;
	}

	public int deleteByPrimaryKey(Integer id) {
		return 0;
	}

	public int insert(ServiceFeeMonthReport record) {
		SqlSession session = sqlSessionFactory.openSession();
		try {
			ServiceFeeMonthReportMapper mapper = session
					.getMapper(ServiceFeeMonthReportMapper.class);
			mapper.insert(record);
			session.commit();
			mapper = null;
		} catch (Exception e) {
			System.out
					.println("com.eos.orm.mybatis.dao.impl.ServiceFeeMonthReportMapperImpl.insert throws exception:"
							+ e.getMessage());
			return -1;
		} finally {
			session.close();
		}
		return 0;
	}

	public int insertSelective(ServiceFeeMonthReport record) {
		return 0;
	}

	public List<ServiceFeeMonthReport> selectByExample(
			ServiceFeeMonthReportExample example) {
		return null;
	}

	public ServiceFeeMonthReport selectByPrimaryKey(Integer id) {
		return null;
	}

	public int updateByExample(ServiceFeeMonthReport record,
			ServiceFeeMonthReportExample example) {
		return 0;
	}

	public int updateByExampleSelective(ServiceFeeMonthReport record,
			ServiceFeeMonthReportExample example) {
		return 0;
	}

	public int updateByPrimaryKey(ServiceFeeMonthReport record) {
		return 0;
	}

	public int updateByPrimaryKeySelective(ServiceFeeMonthReport record) {
		return 0;
	}

}
